/*
 *   Copyright (c) 2010-2022, SIUFUNG
 */
package net.siufung.market.base.tenant.mapper.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import javax.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 系统菜单租户表
 *
 * @author 陈建峰
 * @since 2022-07-06 14:45:08
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("sys_tenant_menu")
public class TenantMenu implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 菜单id
     */
    @TableField("menu_id")
    @NotNull(message = "菜单id不能为空!")
    private Integer menuId;

    /**
     * 租户id
     */
    @TableField("tenant_id")
    @NotNull(message = "租户id不能为空!")
    private Integer tenantId;

    /**
     * 数据标识
     */
    @TableField(value = "deleted", fill = FieldFill.INSERT)
    private Boolean deleted;


}
